package cn.gov.cus.rmftquartz.common.utils;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Map;

/**
 * @author wxming.
 * @date 2018/4/16.
 */
public class TimeUtil {

    /**
     * 从Long类型时间数字串转成格式化时间。
     * @param ruleHitBean
     * @return
     */
    private static String getHitTime(Map<String,String> ruleHitBean){
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String hitTime="";
        try {
            hitTime = format.format(new Date(Long.valueOf(ruleHitBean.get("HITTIME"))));
        }catch (Exception e){
            hitTime = format.format(new Date());
        }
        return hitTime;
    }
}
